package com.situ.domain;

public enum SpotEnum{
	ZREOTH, FIRST, SECOND, THIRD, FOURTH, FIFTH, SIXTH, SEVENTH, EIGHTH, NINTH, TENTH;

	private StateSpotEnum stateSpotEnum = StateSpotEnum.FREE;

	/**
	 * <p>Title: setStateEnum</p>  
	 * <p>Description: 改变停车位的状态, FREE to BUSY or BUSY to FREE</p>  
	 * @author 恩策
	 * @date 2021年7月25日
	 */
	public void setState() {
		if (this.stateSpotEnum.equals(StateSpotEnum.FREE)) {
			this.stateSpotEnum = StateSpotEnum.BUSY;
		}else {
			this.stateSpotEnum = StateSpotEnum.FREE;
		}
	}
	
	public StateSpotEnum getState() {
	    return stateSpotEnum;
	}

}
